package Leo.dao;

import Leo.entity.table.Systemsetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface SystemsettingDao {
    int insert(Systemsetting record);

    int insertSelective(Systemsetting record);

    Systemsetting selectByPrimaryKey(Long settingId);

    int updateByPrimaryKeySelective(Systemsetting record);

    int updateByPrimaryKey(Systemsetting record);

    Systemsetting selectBySettingCode(@Param("settingCode") String code);

    List<Systemsetting> selectActiveSetting();
}